<template>
  <div class="search">
    当前查询参数：{{ $route.query.words }}
    动态路由传参：{{ $route.params.words }}
  </div>
</template>

<script>
export default {
name:'SearchView',
created(){
  console.log(this.$route.query.words)

  console.log('接收动态路由传参',this.$route.params.words)
}
}
</script>

<style scoped>
.search{
    width: 500px;
    height: 500px;
    background-color: skyblue;
}
</style>